﻿<UserControl x:Class="Black.Minecraft.Editor.Views.DataViews.PlayerInformationDataView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:tk="http://schemas.xceed.com/wpf/xaml/toolkit"
             xmlns:vm="clr-namespace:Black.Minecraft.Editor.ViewModels"
             Foreground="Black">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <!--  GameType  -->

        <TextBlock Grid.Row="0"
                   Margin="4"
                   Text="Game Type :" />
        <ComboBox Grid.Row="1"
                  Width="200"
                  Margin="4"
                  HorizontalAlignment="Left"
                  FontWeight="Normal"
                  ItemsSource="{Binding Source={x:Static vm:MainViewModel.Instance},
                                        Path=SoloGameTypes}"
                  SelectedItem="{Binding GameType,
                                         Mode=TwoWay}" />

        <!--  Food Level  -->

        <TextBlock Grid.Row="2"
                   Margin="4"
                   Text="Food Level :" />
        <tk:IntegerUpDown Grid.Row="3"
                          Width="200"
                          MaxHeight="20"
                          Margin="4"
                          HorizontalAlignment="Left"
                          FontWeight="Normal"
                          Minimum="0"
                          TextAlignment="Left"
                          Value="{Binding FoodLevel,
                                          Mode=TwoWay}" />

        <!--  XP Level  -->

        <TextBlock Grid.Row="4"
                   Margin="4"
                   Text="XP Level" />
        <tk:IntegerUpDown Grid.Row="5"
                          Width="200"
                          MaxHeight="20"
                          Margin="4"
                          HorizontalAlignment="Left"
                          FontWeight="Normal"
                          Minimum="0"
                          TextAlignment="Left"
                          Value="{Binding XpLevel,
                                          Mode=TwoWay}" />

        <!--  Spawn Point  -->

        <TextBlock Grid.Row="6"
                   Margin="4"
                   Text="Spawn Point :" />
        <StackPanel Grid.Row="7"
                    Margin="4"
                    Orientation="Horizontal">
            <TextBlock VerticalAlignment="Center"
                       FontWeight="Normal"
                       Text="X:" />
            <tk:IntegerUpDown Width="180"
                              Margin="8,0,0,0"
                              FontWeight="Normal"
                              Maximum="12550821"
                              Minimum="-12550821"
                              TextAlignment="Left"
                              Value="{Binding SpawnX,
                                              Mode=TwoWay}" />
        </StackPanel>
        <StackPanel Grid.Row="8"
                    Margin="4"
                    Orientation="Horizontal">
            <TextBlock VerticalAlignment="Center"
                       FontWeight="Normal"
                       Text="Y:" />
            <tk:IntegerUpDown Width="180"
                              Margin="8,0,0,0"
                              FontWeight="Normal"
                              Maximum="255"
                              Minimum="0"
                              TextAlignment="Left"
                              Value="{Binding SpawnY,
                                              Mode=TwoWay}" />
        </StackPanel>
        <StackPanel Grid.Row="9"
                    Margin="4"
                    Orientation="Horizontal">
            <TextBlock VerticalAlignment="Center"
                       FontWeight="Normal"
                       Text="Z:" />
            <tk:IntegerUpDown Width="180"
                              Margin="8,0,0,0"
                              FontWeight="Normal"
                              Maximum="12550821"
                              Minimum="-12550821"
                              TextAlignment="Left"
                              Value="{Binding SpawnZ,
                                              Mode=TwoWay}" />
        </StackPanel>

        <!--  Position Point  -->

        <TextBlock Grid.Row="10"
                   Margin="4"
                   Text="Position :" />
        <StackPanel Grid.Row="11"
                    Margin="4"
                    Orientation="Horizontal">
            <TextBlock VerticalAlignment="Center"
                       FontWeight="Normal"
                       Text="X:" />
            <tk:DoubleUpDown Width="180"
                             Margin="8,0,0,0"
                             FontWeight="Normal"
                             Maximum="12550821"
                             Minimum="-12550821"
                             TextAlignment="Left"
                             Value="{Binding PosX,
                                             Mode=TwoWay}" />
        </StackPanel>
        <StackPanel Grid.Row="12"
                    Margin="4"
                    Orientation="Horizontal">
            <TextBlock VerticalAlignment="Center"
                       FontWeight="Normal"
                       Text="Y:" />
            <tk:DoubleUpDown Width="180"
                             Margin="8,0,0,0"
                             FontWeight="Normal"
                             Maximum="255"
                             Minimum="0"
                             TextAlignment="Left"
                             Value="{Binding PosY,
                                             Mode=TwoWay}" />
        </StackPanel>
        <StackPanel Grid.Row="13"
                    Margin="4"
                    Orientation="Horizontal">
            <TextBlock VerticalAlignment="Center"
                       FontWeight="Normal"
                       Text="Z:" />
            <tk:DoubleUpDown Width="180"
                             Margin="8,0,0,0"
                             FontWeight="Normal"
                             Maximum="12550821"
                             Minimum="-12550821"
                             TextAlignment="Left"
                             Value="{Binding PosZ,
                                             Mode=TwoWay}" />
        </StackPanel>

    </Grid>
</UserControl>
